import request from '@/utils/request'

export function titQuery(data) {
  return request({
    url: `/md/commonBrowsers/selectPageBom`,
    method: 'post',
    data: data
  })
}

export function itemQuery(data) {
  return request({
    url: `/md/commonBrowsers/selectPageItem`,
    method: 'post',
    data: data
  })
}

export function operationQuery(data) {
  return request({
    url: `/md/commonBrowsers/selectPageOperation`,
    method: 'post',
    data: data
  })
}

export function save(data) {
  return request({
    url: `/md/bom/save`,
    method: 'post',
    data: data
  })
}

export function search(data) {
  return request({
    url: `/md/bom/query`,
    method: 'get',
    params: data
  })
}

export function deleteBOM(data) {
  return request({
    url: `/md/bom/delete`,
    method: 'get',
    params: data
  })
}

export function getBomCustomData() {
  return request({
    url: `/md/commonCustomDatas/getBomCustomData`,
    method: 'get'
  })
}
